<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

    include_once '../connection/databaseHandler.php';
    include_once '../connection/sessionHandler.php';
    $database   = new DatabaseHandler();
    $session    = new SessionHandler();

    $to         = $_GET['to'];
    $message    = $_GET['message'];

    $to         = stripslashes($to);
    $message    = stripslashes($message);
    $to         = mysql_escape_string($to);
    $message    = mysql_escape_string($message);

    $query      = "INSERT INTO ".$database->t_notif."(username,message) VALUE ('".$to."','".$message."')";
    $database->execQuery($query);

    echo "berhasil mengirim pesan...";

?>
